package com.neu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neu.entity.NoticeUser;
import com.neu.mapper.NoticeUserMapper;
import com.neu.service.NoticeUserService;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class NoticeUserServiceImpl extends ServiceImpl<NoticeUserMapper, NoticeUser> implements NoticeUserService {
    @Override
    public List<NoticeUser> getNoticeIdsByUserId(String userId) {
        LambdaQueryWrapper<NoticeUser> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(NoticeUser::getUserId, userId);
        return this.list(queryWrapper);
    }
}
